Fix a race condition when evaluating Eshell commands
authorJim Porter <jporterbugs@gmail.com>
Sat, 25 May 2024 20:46:24 +0000 (13:46 -0700)
committerJim Porter <jporterbugs@gmail.com>
Sat, 25 May 2024 20:46:24 +0000 (13:46 -0700)
commit57dc1ed665d72bc58befa4853fa479b770fe4fcc
tree8940f319ceab957830ef5092a6dc888a729f50b0
parent91509d5d2a2dc818830cff63f13d6efcb229dc0c
Fix a race condition when evaluating Eshell commands

* lisp/eshell/esh-cmd.el (eshell-do-eval): Don't defer when all the
processes are done.

* test/lisp/eshell/esh-cmd-tests.el
(esh-cmd-test/pipeline-wait/nested-pipes): New test.
lisp/eshell/esh-cmd.el
test/lisp/eshell/esh-cmd-tests.el